import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import {router} from './router/index'
import Vuex from 'vuex'
import store from './store';
import {toGet,toPost,toDel,toPut} from './utils/MyAxios'
import iView from 'iview';
import  '../static/style/main.less'
import 'iview/dist/styles/iview.css';
import swal from 'sweetalert';

Vue.use(ElementUI);
Vue.use(Vuex);
Vue.use(iView);

//定义全局变量
Vue.prototype.$post=toPost;
Vue.prototype.$get=toGet;
Vue.prototype.$del=toDel;
Vue.prototype.$put=toPut;

Vue.config.productionTip = false;

new Vue({
  el: '#app',
  router:router,
  store:store,
  components: { App },
  template: '<App/>',
});
